package com.xuecheng.learning.service;

import com.xuecheng.commons.model.dto.LearningProgressDto;
import com.xuecheng.commons.model.dto.PageRequest;
import com.xuecheng.commons.model.dto.RecordDto;
import com.xuecheng.commons.model.vo.ResponseResult;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xuecheng.learning.domain.CourseRecord;

/**
 * <p>
 * 选课记录 服务类
 * </p>
 *
 * @author itheima
 * @since 2022-07-26
 */
public interface CourseRecordService extends IService<CourseRecord> {

        ResponseResult findByCoursePubId(Long coursePubId);

        ResponseResult saveRecord(RecordDto recordDto);

        ResponseResult findPlayUrl(Long coursePubId, Long mediaId, Long teachplanId);

        ResponseResult progress(LearningProgressDto dto);

        ResponseResult<CourseRecord> myCourses(PageRequest pageRequest);
}
